package com.neusoft.neu24.his.hisapp.service.impl;

import com.neusoft.neu24.his.hisapp.dao.IPatientDao;
import com.neusoft.neu24.his.hisapp.dao.impl.PatientDaoImpl;
import com.neusoft.neu24.his.hisapp.entity.Patient;
import com.neusoft.neu24.his.hisapp.service.IPatientService;

import java.util.List;

public class PatientServiceImpl implements IPatientService {
//接口隔离原则
    private IPatientDao patientDao =  new PatientDaoImpl();

    public List<Patient> selectAllPatient()
    {
        return patientDao.selectAllPatient();
    }

    @Override
    public List<Patient> selectPatientByAge(String age) {
        return patientDao.selectPatientByAge(age);
    }
}
